/*
 * @Author: Yeong Lee
 * @Date: 2021-02-15 00:54:34
 * @Last Modified by: Yeong Lee
 * @Last Modified time: 2021-02-28 17:36:55
 */
import React from 'react';
import { Provider } from 'react-redux';
import initStore from './redux/store';
import Route from './route';
import './app.css';

const initialStore = initStore();

const App = () => (
  <Provider store={initialStore}>
    <Route />
  </Provider>
);

// 热重载
import { hot } from 'react-hot-loader/root';
import { setConfig } from 'react-hot-loader';

setConfig({
  reloadHooksOnBodyChange: true,
  reloadLifeCycleHooks: true,
  reloadHooks: false,
});
export default hot(App);
